Register the self-update command only when executin the installer via a phar file
Use the Filesystem component instead of the raw PHP functions