Make $zscore to be properly typed to simplify working with it.
Exclude saving path that require escaping. Wasn't working and seems tricky to get it right.
Validate $path to be valid regex to avoid page of errors for something like 'z a[', or even 'z \'.
Fix sorting expression.