Added check to ignore ^.tmp. files