fixed correct folder for conversion in makefile
Replaced the use of global with sufficiently local state dictionary