check length of filename, not full path