Make writeAssetsToDisc more intuitive

This ensures the outroot is a proper file path before handing it off to a function that strips the first few chars based on the assumption of it starting with `file://`.

It's now possible to pass a string as `outRoot`, which will be treated as a relative path to `Process.cwd()` if it doesn't start with `file://`.