Issue 1754: Modify action for env resource on Windows raises exception