added system detection for separating linux/mac-specific commands