fix path so can be run on daemon