Set real path for replaceFile