Calculate app root dir