Added glob support to copyFiles