tweaked mk-scala-dir