Commands: Infer migrations' namespace (and directory)

Resolves #671