removedir based on len of glob