Cork City picked up a big win against their old rivals Dundalk thanks to Cian Murphy's first half strike.