Radiance uses the RAYPATH environment variable to find its /lib directory, so when you're not running from within OpenStudio, be sure RAYPATH is set.
RAYPATH
/lib