made localhost detection policy little bit more generic
made localhost detection policy little bit more generic

opensciencegrid/oim,opensciencegrid/oim,opensciencegrid/oim,opensciencegrid/oim,opensciencegrid/oim