Add baseDir support to redirect #86