Combining the removal of search directories for virtual environments and test directories into one conditional. If a directory named test(s)? was also a virtual environment, dir would be removed twice causing an exception.