Python 2.4 and 2.5 compatibility: os.path.relpath not available.