use path.join; fix copySync bug