CBLT-47: pass STAGE_DIR to prepare_plugin.js

Change-Id: I1013e665f7fbc6375276b25e590bb82b2a6047a4