added creation of "tmp" directory since without it the initial screenshot will not be created