fix so script works from systemd