Updated script to accomodate new Scala IDE build flow

This still needs to be cleaned-up a bit, and I'll provide a good
commit message before opening the PR.