Index: /trunk/tools/bills/joinstackcmf
===================================================================
--- /trunk/tools/bills/joinstackcmf	(revision 39056)
+++ /trunk/tools/bills/joinstackcmf	(revision 39057)
@@ -16,4 +16,7 @@
 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
 use Pod::Usage qw( pod2usage );
+use PS::IPP::Config 1.01 qw( :standard );
+
+my $ipprc =  PS::IPP::Config->new();
 
 # It wouldn't be too hard to make ota an array and do a list of chips.
@@ -49,14 +52,7 @@
 my $infilename = basename($cmf);
 
-my $path;
-if ($cmf =~ /^neb:/) {
-    $path = `neb-locate -p $cmf`;
-    if (!$path) {
-        die "ailed to find location of $cmf\n";
-    }
-    print $path if $verbose;
-    chomp $path;
-} else {
-    $path = $cmf;
+my $path = $ipprc->file_resolve($cmf);;
+if (!$path) {
+    die "ailed to find location of $cmf\n";
 }
 
@@ -76,7 +72,7 @@
     (undef, $skycell_id) = split " ", $results;
     (undef, $proj, $cell) = split '\.', $skycell_id;
-    $cell += 0;
-    $proj += 0;
 }
+$cell += 0;
+$proj += 0;
 
 print "$stack_id $skycal_id $skycell_id\n" if $verbose;
