Only open existing files for reading
Merge pull request #43 from galedric/selective-open-2

Only open existing files for reading, act II