move file copy to before_script