Remove trailing slash when copy the whole folder