Using a Metal box with no ground is not the best choice and taking the ground from the dimmer to the plug is not really doing anything, kind of pointless really. I would definitely use a 3 wire cord in this application and ground the metal box.
Also trimming the heat sink off the dimmer will reduce the wattage that the dimmer can handle so make sure it will still handle the load you intend to put on it.