Update filetype if possible after moving/renaming