Improved core application directory method.