Added a couple of path checks utility functions
Check path when running initapp