Add support for locally-set projects dir

This makes things work well in macvim, where it's hard to have
environment variables that are normally set through shell config.