Fixes #4238: Fix ncf directory copy

Ticket: http://www.rudder-project.org/redmine/issues/4238

To be merged in 2.9