Refactoring geocell output so it can work on windows