Correct directory creation when copying TS decl files