Rename magic file