added command to change user before sudo command attempt so that mvn is on path