[PATCH 1/2] fix gsn_restart file buffer overflow and missing path sep