Bugfixes for packages

* Loading packages did not take effect before startScene was called on iOS.
* Saving packages on iOS was triggerd in the wrong place. Packages now saved when app enter background.
* Packages default insallation folder now working for mac targets.