support *.app and any path