copySync was not applying filters to directories

this only fixes `copySync` method, `copy` may still have same issue