Remove or replace relative paths for files