added check for existing file to submodule script