fixed issue with whitespace in plist-path, changed script