fix 8dot3 file name error

1. fix 8dot3 file name error
2. reoorgnize subdir
3. fix mac bugs