Fix a typo: os.path.dirname