Trying fix mac os support

- Added checking os type
- Added installing lua by brew