Having more strict isSubmodule detection. fix: #471

iirc path is a little tricky to use on the front end since the front end code is "compiled", so if you build it on linux and then move to windows the path thing wont work properly in all instances