Fix tests by passing proper working directory to processes
Make sure Phar overwrites files and doesn't load them