Format file paths