Fix some problems with maven directory