Fix bug with dependencies of module which ar econfigurable.