Fix setting Base Dir