getInitialCwd should be passed connection, not username