improve chgmod/own on Hadoop 2.x to properly throw exceptions

SHDP-128