log command executions, isOsX method uses os.name property