diff --git a/COPYING b/COPYING
index bd86580512bf25f66f344c80675eff90acf668cb..bf74e1f1c53caac6d3eede9150a815df7a89a5d9 100644
--- a/COPYING
+++ b/COPYING
@@ -23,8 +23,9 @@ Copyright holders:
 2011          Elias Pipping
 2007          Sreejith Pulloor Kuttanikkad
 2009          Atgeirr Rasmussen
-2004--2012    Oliver Sander
 2008--2012    Uli Sack
+2004--2012    Oliver Sander
+2013          BÃ¥rd Skaflestad
 2006--2010    Martin Weiser
 2011--2012    Matthias Wohlmuth
 
diff --git a/m4/superlu-dist.m4 b/m4/superlu-dist.m4
index d9436c8bf1fe2e15541e90d6d7ab491a45136f81..f10499e0bdc95f8b63dd33c0bf81806ba9654427 100644
--- a/m4/superlu-dist.m4
+++ b/m4/superlu-dist.m4
@@ -57,12 +57,12 @@ AC_DEFUN([DUNE_PATH_SUPERLU_DIST],[
 	    [AC_HELP_STRING([--with-superlu-dist],[user defined path to SuperLUDist library])],
 	    [dnl
 		if test "$withval" != no ; then
-		    # get absolute path
-		    with_superlu_dist=`eval cd $withval 2>&1 && pwd`
 		    if test "$withval" = yes; then
 		        # Search in default locations
 			_slu_dist_search_default
 		    else
+                # get absolute path
+                with_superlu_dist=`eval cd $withval 2>&1 && pwd`
 		        # Search for the headers in the specified location
 			_slu_dist_lib_path("$with_superlu_dist", "superlu_ddefs.h")
 		    fi
diff --git a/m4/superlu.m4 b/m4/superlu.m4
index 6a4008f5c6d3485e9614b5c7b2405c94b24b7c58..e2e42869c3cc86803d9e8805f05e2caaeee851a6 100644
--- a/m4/superlu.m4
+++ b/m4/superlu.m4
@@ -152,12 +152,12 @@ AC_DEFUN([DUNE_PATH_SUPERLU],[
         [AC_HELP_STRING([--with-superlu],[user defined path to SuperLU library])],
         [dnl
             if test x"$withval" != xno ; then
-                # get absolute path
-                with_superlu=`eval cd $withval 2>&1 && pwd`
                 if test x"$withval" = xyes; then
                     # Search in default locations
                     _slu_search_default
                 else
+                    # get absolute path
+                    with_superlu=`eval cd $withval 2>&1 && pwd`
                     # Search for the headers in the specified location
                     _slu_search_versions(["$with_superlu"])
                 fi