That may work if all less files are in a subdirectory relative the input file. But my setup is like this:

/css/src/main.less
/css/prd/main.css
/css/vendor/bootstrap/

main.less does things like "@import ../vendor/boostrap/less/variables.less" and all output is placed in /css/prd/