src: fixed small bug with dir selection