Correctly join prefix paths for php bindings