Fix ~ files creation on windows

Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>