Fixing method to get app pool name.