path construction changes related to bugs in PHP / CGI / nginx