Cleaning master directory