Fix small bug in sonar.py for makedirs (cachedir)