Add file existance check before trying to get version