Fixes and better error handling for installing dependencies of dev package