fixed bug passing int into os.path.join