Add hooks for Wine environments.
Simplify file and directory creation.