Merge pull request #2 from yves-del-medico/permissions

Added retries on fs.chmod to avoid errors while restoring permissions.