Patch shell scripts