fix build hook to chnage dir before performing mvn clean install