Change version to beta
Escape path for AppleScript
Tidy up