v3.1.1
This fix avoids an unintended absolute path when using the [path] placeholder which gets replaced with an empty string.
Since the separator of the placeholder isn't part of it, the following [path]/[name] would turn into /[name] which isn't intended and most likely results in an ENOENT error. Is has been fixed now by removing the leading slash if no root could be determined and thus no relative path could be computed.