Directory and import path setting bug

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