Modified artifact copying logic to ensure that only the current artifacts are stored in the project lib dir