Fix to shell script. Now it works like Makefile