fixed path errors in generator script util

This PR fixes the error when you run the webapp generator script form root path or ./util path.