Fix directory name for chmod.