Add special case in Item.modify_metadata if target is a file