add -r option for relative path