Fix attach to accept legacy options

attach still needs to support legacy options like -n, so we will
continue to support them (or at least not throw an error)
(Trac: #1445)