fix getTerminalColums for plan 9, and fix up import path for test file