Check if get_ncl_location() function exists before using it