Fix deps for Drake.

- Fix invalid dependencies between deps
- Fix invalid shell script generated as entry point