Check PIPESTATUS to get Maven build result, otherwise mvn exit code is lost