Merging bash functions for Debian and Mac OS.