Fixed located directory of custom script and race condition safplus_watchdog monitor safplus_amf whilesafplus stop