Fix ensure_resource on directory tree for boxen brews