diff --git a/component/file/buildout.cfg b/component/file/buildout.cfg
index 3c105b6928ebdd4fac9d4062595f7d94c6deda93..432409cc25ba7cd75f7c1cd83cc7ba59c5a5b0d4 100644
--- a/component/file/buildout.cfg
+++ b/component/file/buildout.cfg
@@ -6,6 +6,13 @@ parts = file
 extends =
   ../zlib/buildout.cfg
 
+[file-msooxml]
+recipe = slapos.recipe.build:download
+url = ${:_profile_base_location_}/msooxml
+md5sum = c889ad135cbfb343db36b729a3897432
+location = ${buildout:parts-directory}/${:_buildout_section_name_}
+filename = msooxml
+
 [file]
 recipe = slapos.recipe.cmmi
 url = http://ftp.icm.edu.pl/packages/file/file-5.32.tar.gz
@@ -17,6 +24,5 @@ environment =
   LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
 pre-configure =
 # patch for fix msooxml files detect correctly
-  set -e -x
   test -f ./magic/Magdir/msooxml
-  cp ${:_profile_base_location_}/msooxml ./magic/Magdir/
+  cp ${file-msooxml:location}/msooxml ./magic/Magdir/