Change relative paths to absolute paths, using __dirname