Fixed local file path resolve minor issue. Minor refactor. Adding test cases for config CLI comand (in process)