Cleans up directories and script files