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.