Try to make a module wrapper of the bowtie tool and change the script accordingly as the test3.
Solution in the folder test5