Updated capture recipe to use stackname as the directory.