fix makefile to create directories correctly
Move all config files to cfg directory