use functions instead of variables for os detection
Merge pull request #8 from Mic92/master

use functions instead of variables for os detection