Added env checking to determine browser and added selenium server env into script. Also running remote directly for Safari so can control logging and other desiredcapabilities directly