Bugfix for Darwin-based OSes support