Fix chmod task not passing glob option and calling next too soon.
Standardize mkdir to follow the unix behaviour.
Fix symlink task.
Fix rm calling next too soon.
Fix lot of issues with the tests.