Added code to setup a local package repository if it doesn't exist