Improvements to logic flow of compile script.
Make path more explicit in release script.