fix resolve local maven path
fix success checked, when sbt is executed from shell directly