Remove unnecessary call to os.path.join