.ensure(): make sure the path is set correctly