Add testing in, make things promise

I've added testing to this, not sure at all this is how it should be.

@kevinhodges @philmeehan @panicnot 
Personally I think here this is better being more verbose, something like 
```
var configFile = require( 'bobfile.json' );
if( global.__BASE ) {	
	self.currentDir = global.__BASE;
	self.bobDir = global.__BASE;
} else {
	// overwrite the configFile
	configFile = require( '../bobfile.json'; );
	self.currentDir = process.cwd() + '/';
	self.bobDir = __dirname + '/../';
}
```