fix ImportError on Python 2.4

Python 2.4 doesn't have subprocess.CalledProcessError