Fix some paths using relative realpaths() instead of the constants in bootstrap.

This fixes #946 and helps with #894
Get themes dir from config.
Fix issue with $config in paths().
Merge pull request #947 from helderco/bolt-in-vendor

Fix some paths using relative realpaths()