updated extractScreenshots script to make sure the exported directory exists