Fix profile lookup

Fixes https://github.com/hashdist/hashstack2/issues/79.