Fixed doctests to work cross-platform