fix #17 .dirname() method.

 On branch master

	modified:   index.js
	modified:   test/test.js