Distributions Plugin install*Dist cannot be re-run

This removes some code copied from the `application` plugin that prevented distribution installations to be re-run without providing a `lib` and `bin` directory within the installation. Also added an integration test to ensure the rerunnable behavior.