Add missing return value for filename check

Oh my, how embarrassing.