Fix failing tests

This pull request fixes the many of broken tests for `copyDirSyncRecursive`. These tests appear to have been broken since 04c8fe0239446b7bb162339302b151359f7d2188.