[FIX] use path module to resolve paths.