media gen makefile is tested for existence instead of dir