Remove extra $ from a command