Update basedir variable to support windows