Some fixes in handling configfile and installscript