Fix pathing issues on OS X
Incorrect parsing of the script path in a couple modules was causing crashes when running app.py on OS X. App.scriptPath is now chosen correctly for both major platforms, so no special path manipulation is needed for OS X.