Fixed check for presence of appframework