change permission and removed double ensure stanza for resource.d