fixed copying of sources file in scripts