Fix bug in relative path and when no chunk size is define