Fixed Makefile

Fixed the Makefile to create the bin/ and tmp/ directories if they don't already exist.