fixing dockerfile errors and writing selected_buildpack to a file at the root for easy lookup after the fact