Fix the compile script to remove modules' target from the slug