Apple Safari Detect Script (Mac OS X)

Summary
Detection of installed version of Apple Safari on Mac OS X. The script logs in via ssh, searches for folder 'Safari.app' and queries the related 'info.plist' file for string 'CFBundleShortVersionString' via command line option 'defaults read'.
Detection
executable version check