Fixed bugs to let scritp loading status function works on Linux.