removed files of previous timelapse recursively using rimraf module