Fix where module name is the whole module path.

This fixed an issue where registerFolders() used the whole module path
as $name.
```
foreach($this->modules as $name => $path)
{
$name = strtolower($name);
App::make('view')->addNamespace($name, $path.'/views');
App::make('config')->addNamespace($name, $path.'/config');
App::make('translator')->addNamespace($name, $path.'/lang');
}
```