Fix regex error and preserve timestamps on copied files