resolve path.join(null) error