Added some minor changes to make laravel play better with sub directories.