Ensure output directory is created on every rebuild.

When all files are filtered out, it would previously not created the
output directory. This causes a number of errors for downstream
consumers.