Replaced scandir with glob(/usr/local/opt/php55/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/mysql/bin, GLOB_ONLYDIR) and reduced the amount of code needed within CodeIgniterCommand.