Avoid adding duplicate dependencies to module map