avoid silly 'unsuccessful stat on filename with \n' warning