Remove the getAppDir() method from kernel