Fixed Makefile.common and linux script