Index JSON files moved.
Move pid and log dirs
refactor Makefile