Fix php output filepath