fix(getName): get file path using path.join

__dirname + "/../../package.json" would  have /../../ in the middle of the string