Check if file exists before opening file for version check