Added try/except block to catch unexistent dirs

shots.py would try to open nonexistent directories, which causes
OSErrors and crashing. This should fix that.