diff --git a/core/generate_ip_libs b/core/generate_ip_libs
index 5f5ccba0baf9bcac1a6aa6e264490a49307d9413..e4e4d66d6c256e44711c0b4ca4619c41eeaaf87b 100755
--- a/core/generate_ip_libs
+++ b/core/generate_ip_libs
@@ -80,8 +80,8 @@ def run_qsys(buildset, outputdir, hdllib, vhdl_files, options):
         script += 'cd %s\n' % hdllib.location
         script += 'set -o pipefail\n'
         # echo line without 'Info:' to make sure grep it's exit code is 0
-        script += '(echo " " ; qsys-generate %s %s --output-directory=%s %s 2>&1) | grep -iv Info:\n' \
-                  % (options, extra_options, outputdir, vhdl_file)
+        script += '(echo " " ; qsys-generate %s %s %s --output-directory=%s 2>&1) | grep -iv Info:\n' \
+                  % (vhdl_file, options, extra_options, outputdir)
         script += 'exit_code=$?\n'
         script += 'exit $exit_code\n'
         # execute script
@@ -184,6 +184,7 @@ if __name__ == '__main__':
                         err_code = run_qmegawiz(args.buildset, outputdir, ip_lib_info, vhdl_files, tool_options)
                     elif ip_tool == 'qsys-generate':
                         err_code = run_qsys(args.buildset, outputdir, ip_lib_info, vhdl_files, tool_options)
+
                     elif ip_tool == 'quartus_sh':
                         err_code = run_quartus_sh(args.buildset, outputdir, ip_lib_info, vhdl_files, tool_options)
                     else:
diff --git a/core/hdl_libraries_wizard.py b/core/hdl_libraries_wizard.py
index 558e6c01fd9d8d972b09f803a07469757dda2cf4..fe8241a168bf48965d1d779994e2899ab9e008e0 100644
--- a/core/hdl_libraries_wizard.py
+++ b/core/hdl_libraries_wizard.py
@@ -533,6 +533,7 @@ class HdlLibrariesWizard:
                 for fpn_io in file_io:
                     sourcePathName  = cm.expand_file_path_name(fpn_io[0], lib_path)
                     destinationPath = cm.expand_file_path_name(fpn_io[1], build_dir_path)
+                    # print("Copy '{}'' to '{}'".format(sourcePathName, destinationPath))
                     if isfile(sourcePathName):
                         file_count += 1
                         shutil.copy(sourcePathName, destinationPath)     # copy file
diff --git a/set_config_path b/set_config_path
index 3da2d7c6ac0b470d7c0eac0f2b515e56c76ebc6c..2febd0baa62bc959fa3d21078d7cd71b5cd58cf5 100644
--- a/set_config_path
+++ b/set_config_path
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #
 # Copyright (C) 2018
diff --git a/set_config_variable b/set_config_variable
index 737e98afabc034d3ebcdc65a04c27d6aaab5634f..8ce32737feb4eb725825ccd33845da9f321a310e 100644
--- a/set_config_variable
+++ b/set_config_variable
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #
 # Copyright (C) 2018
diff --git a/set_hdllib_variable b/set_hdllib_variable
index aed10a6e58c74ebe0e7a73005e6035320c85a0f7..08cdae6f036c2e0ea6301892cbbc76ed10c434fd 100644
--- a/set_hdllib_variable
+++ b/set_hdllib_variable
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #
 # Copyright (C) 2018