Actually, URI.join was dropping "dist/" and replacing it with the filename variable in each recipe.