Strip passenger base url if possible; use real path for file lookup