[provisioner/shell] minor fixes for #calculate_path