This now also contains changes to generalize the port and remove double slashes (project_path is guaranteed to end with a trailing slash)