Little refactoring + deal with shebang during phar compilation