Fixed copy script and makefiles