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

Restore files permissions on unix like systems (linux, mac os x).