Fix retrieval of build version to use grep instead of maven.