clean up permissions after setting bosh target [fixes #52]