Apparently ~ is a no-go. Replaced with $HOME