Don't open file to check if it exists + exists test. Closes #742