Fall back to project directory if no base URL is set.

Fixes "TypeError: Arguments to path.resolve must be strings" error
when using node v0.10.0.