sh_functions: add/mod chmod funcs for dirs and files