Refactor submodule push check to use string list instead of integer