refactored function to copy dirs recursively
fixed wrong label in line chart options