Only check phar validity if phar.readonly is false