fixed bug 897700 - replaces undefined libexec var with bash function