add missing import, properly use os.path.join