Try to improve error checking in mix.exs