#241: fix reference errors; santitize modules array
#241: command/install: allow user to exec "cortex install" even if there is no deps of the current repo