Real paths work allways, even when cwd != project root

Fixing the second problem mentioned at #345