converts relative paths to absolute