add null value(tylda) to regular expression

Hi,

When you set assets_version with null value(`assets_version: ~`) in your `config.yml` then after sed it leaves `~` char at end of commit version so it would be nice to add it to regular expression.