Remove build and cache directories.