Fix `#determineAppname()` to always find a name