package makefile: Minor fix in build path
orderVersion: now handles NA values (pushed at the end) and using extra sorting criteria
Moved package dependency functions to repotools