fix network script and compiler compiling under root