Use phoenix and elixir version from mix.exs in task to create new phoeni...

...x apps. To avoid updating the template every time phoenix or elixir versions are changed.
> Is that how the task is supposed to work?

No, it looks like the task already assumes it will be ran from the phoenix directory which is a faulty assumption.