do not require default to be a regular file, fix #2750