Makefile: Fix pattern-matching by using bash
Fix allocation