I'm not sure I understand the motivation here. ROS_PACKAGE_PATH is required for all sort of things to work. In fact, the CatkinPlugin uses it in the constructor to find all workspaces. As far as I can tell, replacing it here is no-op.

Am I missing something?