Fixed some issues with connecting and the set_dir message.