Fix some Filename issues

Move template minimizing to function.
Filename.default is no longer restricted to being a valid Filename (now
behaves like other Templates).
Allows a Filename to be relative to one that is not present in the
configuration but has a default value.