Use expand-file-name to get path instead to support both osx and linux.
Remove scala stuff.
Remove unused settings in env.