Resolves file copy process

The promises is only resolved when using http to get CSS file

Local css file needs to be resolved after finished copying