macosx: move bundle path stuff to path-macosx.m

This makes the code uniform to how stuff was handled for Windows in 1cb55ceb.