Better app root directory handling.