Fix handling of non-existing files, fixes #107