replaced setInterval by setTimeout

to prevent waiting for the first loop of setInterval
when the application starts.

The problem with the original version was that on first start of the server, I would have to wait 30 minutes before I can use the private repo for fetching packages from the public repo the first time.