Add check for correct phantomjs binary permissions to avoid needless chmods.