diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py
index c23ce51b2cf390a28419a7ddc15657f4a48d47b6..d993e1c38ed7735587bf6692b92fa949eaf7323a 100644
--- a/bob/devtools/bootstrap.py
+++ b/bob/devtools/bootstrap.py
@@ -65,21 +65,20 @@ def do_hack(project_dir):
         
     #### HACK that avoids this issue: https://github.com/conda/conda-build/issues/3767
     license_file = os.path.join(project_dir, 'LICENSE')
+    if not os.path.exists(license_file):
+        license_file = os.path.join(project_dir, 'LICENSE.AGPL')
+    
     recipe_dir = os.path.join(project_dir, 'conda')    
     if os.path.exists(license_file) and os.path.exists(recipe_dir):
         logger.warn('Copying LICENSE file to `./conda` dir to avoid issue with conda build (https://github.com/conda/conda-build/issues/3767)')
         logger.warn('Replacing ../LICENSE to LICENSE (https://github.com/conda/conda-build/issues/3767)')        
-        shutil.copyfile(license_file, os.path.join(recipe_dir,"LICENSE"))
+        shutil.copyfile(license_file, os.path.join(recipe_dir,  os.path.basename(license_file) ))
         
         # Checking COPYING file just in case
         copying_file = os.path.join(project_dir, 'COPYING')
         if(os.path.exists(copying_file)):
             shutil.copyfile(copying_file, os.path.join(recipe_dir,"COPYING"))
             
-        agpl_file = os.path.join(project_dir, 'LICENSE.AGPL')
-        if(os.path.exists(agpl_file)):
-            shutil.copyfile(agpl_file, os.path.join(recipe_dir,"LICENSE.AGPL"))
-            
         meta_file = os.path.join(recipe_dir,"meta.yaml")
         recipe = open(meta_file).readlines()
         recipe = [l.replace("../COPYING","COPYING").replace("../LICENSE","LICENSE").replace("../LICENSE.AGPL","LICENSE.AGPL") for l in recipe]