Fix remote compilation handling