Run chmod on files, on single and directory files

PLAT-81 #