added function to remove the builddirectories of inactive branches (no commits in the last 30 days)