Adding functions equivalent to chmod/chown --reference.