Fixed to work on Unix.