Check for file existence before using dotenv