Fix copy assets while assets config are files

This patch fixes issue 900: if config the assets as files, it will
copy the files as file `public` instead of copy the files into directory
`public/`.