Replace '-' in bash variables with '_'

Fixed bug reported in issue #118, where bash variables are invalid if they have "-" in their name.

@dallasmarlow  @joshrabinowitz @byxorna