use path.resolve instead of adding './'