Improve dependency module: dont try to install dependencies twice