updated deploy script to check for local roots first