Used drupal_realname where i should have used drupal_basename.