Handle no prefix gracefully

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>