barclamp_mgmt_lib: Make chmod_dir skip directories

The way it is used currently it's not supposed to touch directories as it
would take away the execute bit from them.
Merge pull request #2037 from rhafer/from-git

barclamp_mgmt_lib: Make chmod_dir skip directories