To make "tmux attach" create a session when there aren't any active yet,
you need to call "new-session" in the config. My problem was that
new-session was set before setting the terminal to 256 colors. Hence,
when a session is created, it has TERM=screen by default.