Fix a silly bug that made copyDir() fail