Fixes for  ad-hoc testing finds

Fixes 2 bugs found by Johhny: rdlint -as and invalid filenames.