fixed hard coded locale directory to check for local directory if its
not found.
fixed use of Smart::Match any thanks to spacebat