Fix nginx and php paths error if debug is turned on.