Bug fix: remove leading / in filename for os.path.join