* properly quote DIR variable (it might contain spaces) * use builtin string magic instead of `dirname`
See https://github.com/kennethreitz/autoenv