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 is to use ``file.replace`` instead.