Use os.path.join instead ".", sorry forget refactory after implement ssh remote features.