fix wrong return value for isFileNameValid()