fixed so that change of <resources> could be handled correctly.
Merge pull request #504 from yuusuke/fix_stonithd

fixed so that change of <resources> could be handled correctly.