This allows custom paths that include special characters like `~` to be properly expanded instead of resulting in joined root path with special characters included.
This allows custom paths that include special characters like `~` to be properly expanded instead of resulting in joined root path with special characters included.