Fixed Makefile test bug under OSX and possibly other BSD's, replaced test -f *.mod with ls function since BSD test apparently doesn't support wildcards.