Added a feature for define a base_dir in the remote site