"~" in if..then..fi fix for BASH console