Added support for Slim apps running in subdirs. (Fixes #6)