Bundling scripts (mix ecto.setup etc) with new elixir releases

A script in bin for running mix ecto.setup ? Apart from hard coding, how would it know where the application code, etc lived?