Checking platform before setting sfold and unafold commands

sfold is on the path on the server, so it should be fine.