Fix generator issue...

...where it would generate a file at `/` if there was no directory
specified.