Add some file.exists checks.