Fix issues with PHAR packaging on Windows