Fixed path detection
Fixed bad upload detection
Fixed manifest generation