# Some shared sub routines
 #
 # Author:        Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-04-21
+# Last modified: 2005-04-22
 #
 
 use strict;
              multi_string
              upper_path);
 
+use Carp qw(croak);
+
 # check_path()
 #
 # Check if a virtual path is above a virtual root directory
  # We extract the last part of the path and create the absolute path
 
  my $first = upper_path($path);
+ $first    = File::Spec->canonpath($first);
  $first    = abs_path($first);
 
  my $last  = file_name($path);