fixed paths so script works as a daemon using forever