FMS: allow empty path when calling ls API

This was previously fixed in the CLI, now it has been backported in the API
fixes #398
Fix 350