Path extension fix for app.php

Path extension to add script name only for non production scripts