Move genhotfixhtml function to patches directory