Added a fix for root folder to be mistreated as dirname() returns / on it instead of empty string.
Merge branch 'master' of git://github.com/sergeychernyshev/php-bootstrap