Merge "Fix maintenance script failure when run as a child of a FastCGI worker"