Split out common keypath code to it's own function
drwxr-xr-x - bin
drwxr-xr-x - etc
drwxr-xr-x - gkeyldap
drwxr-xr-x - gkeys
-rw-r--r-- 482 testpath