Added extra check to make sure we are not corrupting PATH