Revert behaviour when not managing remote resource

Regression introduced in 24b14fbf

Building command for local-case was using a parameter :ldapi which does
not exist. Revert to previous behaviour for this case.