status: extract helper for producing relative or absolute path for UI

Authored by martinvonz.