Fix #2 getVersion function