Got FromPath() to work for GOPATHs with and without a trailling slash

This fixes the issue introduced by https://github.com/Blackrush/vim-gocode/commit/9dd01c9518a07de139260c450ca030c644efe28d and makes sure that the code will work regardless of whether the users specify their GOPATH with or without a trailing slash.