Create the screenshot directory if it doesn't already exist
Check the return value instead of simply checking the error
Merge pull request #504 from jacobrelkin/jacobrelkin/create-screenshot-directory-if-needed

Create the screenshot directory if needed