Added a rootDir function in Application