Fix escript generation for projects with deps