diff --git a/bin/filelist_compile.py b/bin/filelist_compile.py
index 1f0bbe18add235a630e62dbb7fba098a8c179260..7b61cfda04e2948a0be6a782d34b2e2eaf748454 100755
--- a/bin/filelist_compile.py
+++ b/bin/filelist_compile.py
@@ -99,7 +99,7 @@ def read_list(filelist, first, args):
                 else:
                     if args.absolute == True:
                         if first == True:
-                            compiled_filelist.append("set search_path [ $search_path " + str(env_var_substitute(line_list[0].lstrip("+incdir+"), tcl=True)).replace("$","$env") + " ]")
+                            compiled_filelist.append("set search_path " + str(env_var_substitute(line_list[0].lstrip("+incdir+"), tcl=True)).replace("$","$env"))
                             first = False
                         else:
                             compiled_filelist.append("set search_path [ concat $search_path " + str(env_var_substitute(line_list[0].lstrip("+incdir+"), tcl=True)).replace("$","$env") + " ]")