Removed unnecesssary composer.lock creation, abstracted $frameworkdir

See https://github.com/silverstripe/silverstripe-installer/commit/e9f13512dcd7ec6cf6e916c07ce0375a62c34c13#commitcomment-3807539