Added functions for getting the version output and added -version to the generic branch