changed first rm call to system from sh to prevent exit(1) halting build