[Configure] fix for non-existing --prefix

abs_path produces the empty string in such cases, use File::Spec->rel2abs instead