Uses ghcmod-vim's basedir function if installed, otherwise does basically the same thing itself