update to what looks like an improved way to check for file existence with
new API (#9)