OS X: fixed CCACHE condition check
main: exit with app status