[UPDATE] using path module to resolve paths.