Fixes #37 Separate install_dir from COMPOSER_HOME

I'm having the same problems as @dorongutman and this changes intends to fix them.