Fixed some bugs with aws job launch