Dependency checking now implemented as a graph - fixes #108

- Must faster now. And proper pkg order!