Code cleanup and optimization
Check if the file exists before we try to get version information from it