fix for different combo of iis_app resource

account for iis_app with and without physicalpath attribute