Fixes #4462 - Do not applied recursion on files to prevent warning and applied permissions on base directory

Fixes #4462 - Do not applied recursion on files to prevent warning and applied permissions on base directory
cf http://www.rudder-project.org/redmine/issues/4462