fixes #4934 should make it work on windows if php.exe is in path