Fixes #2568. JoinSuffix should not be used here.

Fixes #2568
JoinSuffix should not be used because : 
1. this code has nothing to do with file paths
2. file path checking has a margin size of 128 to be taken of the max limit