fixbug: VALID_NAME(x) cause file name too long

Signed-off-by: Min Chen <minchen@ubuntukylin.com>