Fix goimports and go fmt calling (fixes #792)

It remains to solve the issue of setting the GOPATH for creating new projects as currently in the dialog there's no way to do it, hence things won't work properly. Also, new projects should be able to be created inside the GOPATH properly. But that's another PR.