Hi,
I think this a better way for finding the WordPress Upload directory (in function hlic_upload_dir) :
if (!$backward_compatible || !$old_hlic_upload_dir || !$is_dir($abs_upload_dir)) {
$uploads = wp_upload_dir();
$upload_dir = $uploads['basedir'] . $uploads['subdir'] . '/HLIC';
}
The old method didn't work well on my installation with wordpress 3.0.4.