update iar.py: fixed bug when path is absolute.