Having more strict isSubmodule detection. fix: #471