fix screenshot logic to use --tmp dir
update safari / remote debugger code to work with ios8