Issue #2273689 by donquixote: Fixed switch-psr4.sh does not reliably remove empty PSR-0 directories.