ensure destination directory is present when copy a file