forkcms/forkcms — pull request #654 by Xeoncross (2014-02-10 21:40:25+00:00)
Title: Fixed #653. Support for command line requests and (lighthttpd/nginx) installation 

The index.php should attempt to "reset" the CWD so that the assumptions it makes about paths are correct. Don't assume the CWD will always be `__DIR__ . '/index.php'`.