only check if screenshot directory exists once.
removed space in screenshot directory path.