Added more flags and a nice way to get the current build version.