settings: avoid using StartupItemContext in newer versions of Darwin

Apple decided to remove this script in the newer versions of OSX.
Merge pull request #591 from pooya/yosemite

settings: avoid using StartupItemContext in newer versions of Darwin