Added check to recently added build dir removal