properly escape script paths for windows