diff --git a/.travis.yml b/.travis.yml
index e9788e8e0ca19ec925838a03a6c716764b0251ab..dc4acd80c172f2ab981df2f4ec4a0651e72b4970 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -56,10 +56,11 @@ install:
   - if test "$MAKEDOC" == yes ; then sudo apt-get update -qq                     ; fi
   - if test "$MAKEDOC" == yes ; then sudo apt-get install -y doxygen doxygen-latex ; fi
   - if test "$VALGRIND" == yes ; then sudo apt-get install -y valgrind           ; fi
-  - if test "$LAPACK" == yes  ; then sudo apt-get install libatlas-base-dev      ; fi
+  - if test "$LAPACK" == yes ; then sudo apt-get install libatlas-base-dev      ; fi
+  - if test "$ALMOST" == yes ; then sudo apt-get install libatlas-base-dev      ; fi
   - if test "$ALMOST" == yes ; then ./.travis/install.almost                     ; fi
   - if test "$ALMOST" == yes ; then ENALMOST="--enable-almost"                 ; fi
-  - if test "$ALMOST" == yes ; then PLUMED_CPPFLAGS="$INCLUDE -I/usr/local/include -I/usr/local/include/almost"  ; fi
+  - if test "$ALMOST" == yes ; then PLUMED_CPPFLAGS="$INCLUDE -I/$HOME/opt/include/almost"  ; fi
 # moreover, we hardcode path to dynamic library, required for xdrfile to link properly
 # I do it only when LD_LIBRARY_PATH is non blank, since otherwise clang gives problems
   - if test -n "$LD_LIBRARY_PATH" ; then PLUMED_LDFLAGS="-Wl,-rpath,$LD_LIBRARY_PATH" ; fi