Refactor to exit nonzero for unknown bookmarks

This will be useful when calling jump from e.g. Alfred.

cc @Ezial