Fix tilde replacement for run word