split bclean into local and remote scripts