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

fixes #6