detect package name from controller.php