Updated to allow the path to maven to be overridden