Ensure `expose` path is absolute

Fixes #1020.