Replace relative paths with absolute ones