Added support for webPhar rewrite function