Make the layouts: config key relative to CWD or to Source

Fixes #1576.