Replaced /usr/bin/printf with more portable command printf