Fix clientdir path conversion in import.py