Updated the bash scripts to use the % delimieter instead of $, as the latter was causing problems