convertPaths function

Change the absolute path of a file