Rename $APP to $APPL and make better use of $APPL_TOP