Fix --ignore-dependencies not working as intended