Create dir, and set env var (magic_shell)