make sync work if not in home directory