cleaning up base dir