Change states to use short-dec style

These changes should be cosmetic only. Please double-check as they were largely automated.
@whiteinge ``file.sed`` has been deprecated. Please change it to use ``file.replace`` instead.