Added property pid_dir_user + Small fixes in kv.run