possible to set absolute or relative result path

Added a workaround to use absolute and relative path with the "-r" tag.