Add support for remote build (option --remote)