Fixes for package.sh to clean module depends since they are not correct for standalone modules.