Fixed the byte regex and made an error use the dynamic app file name.