Fix path for magic file.