fixed retrieving version on mac osx