fixes to the way paths are handled in load_keys

should fix issue #97