Added support for --basedir option. 

Particularly useful if running on Windows :)