Handle sub_dirs in update-deps