Added directory preservation on rmDirRecursive function