don't attempt to remove empty optional files if writing new UFO from scratch
don't attempt to remove empty optional files if writing new UFO from scratch

and don't strip trailing '/', keep input path as is. It should not be
used by anybody, anyway.

fonttools/fonttools,googlefonts/fonttools