Adds support for multiple FROM statements within a Dockerfile. Thanks to @reicheltp for regex inspiration. Closes #1011