checking if scriptfile exists