Fix for #659, saving and restoring the current working directory in the GLFW backend.
Revert unwanted hunk from other branch!
Handling potential exceptions as suggested by @Eric89GXL's review.
Get directory before the try/except block, if it throws an error the directory doesn't need to be changed back in the finally block.
Removed trailing spaces. Can't get anything else wrong I think :-)
Merge pull request #660 from alexjc/glfw-cwd

Saving and restoring cwd in GLFW backend.