updated custom write node for non-relative paths