Change helpers to take the file basename.

This permits passing arbitrary names like 'all' or 'foo' or 'style'
so it's less opinionated.