Make sandpit directory check work on unix and windows.