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