Don't leave a trailing . on bash_safe strings

Thanks @notwa :)