fileExists function check for version now as well