Add some basic checks for file permissions before attempting to open
something...