Makefile update
Update functions from the newer SDCard branch