Add convenience constructor for path instances.