Removing build directories in build dependencies