Various bug fixes in file loading and process.version