Use DIRECTORY_SEPARATOR constant when setting file save path