guard a file-exists? call properly