update version to 0.8.4
improve gBasename util function