changed EPERM behavior, regex bug