Updated sonicscan.py to run from the torch directory.