use GNU version of asprintf
minor fix to commit_service handler
proper error checking for UCI calls