Fix autocompletion path for Parameter resource

Also it makes autocompletion path construction more DRY