Fix some paths using relative realpaths()

When Bolt is installed via composer, absolute paths resolved via relative means (realpath) aren't correct.

We should use the constants in bootstrap.php.

This fixes #946 and helps with #894.

I'm leaving `apppath` alone because that one actually must point to Bolt's app dir (even though I have my own in project root).