fix bug in link-home script