Remove trailing slash suffix from GOPATH, since some users can set their GOPATH with trailing slash
TrimLeft deletes every consequent occurrences from dir. So if directory has sat the beginning, it also will remove it