support glob in is_file_under_dir
add step for changing current dir