Various fixes that we talked about over coffee

1) Creating target dir if it doesn't exist.