Fixed copy path problems and resources directory in dar file.