Added an option to specify the directory for artifacts