return empty array if package modules dir does not exist
ignore .o files in new packages
refactor library path name to constant, stdlib depends on lib dir