Improve scripts handling in Makefile