"Undefined" just means that the command did not return anything. On a Mac, you do not get a path unless that directory exists.
Try creating this folder and then run the command again:
All sorted now and thanks
For anyone reading this: the folder will be different between the permanent license and subscription versions.