Cleaning up base directory.