remove \r at end of line
simplify regexp pattern for file extensions