Added screenshot & improved tmpdir reckognition