Remove trailing slash from TARGET_OUTPUT_DIR.
Remove trailing slash from STAGING_TO_HW_DIR.
Better support for subdirectories in bot activity integration.