variables was called path, not dir
trim trailing slash
Initiate anonymous object
Rename gitmodules_path property
Rename gitmodules_path
rename path to local_path
rename dir_exists to path_exists
Refactor: extract path to submodule prop
added props gitmodules_path and gitmodules_exists