Fix for locale_gen running on arch

This is a bugfix for Issue #13. It uses the re sub method for replacing lines, as opposed to the string replace method. This allows for 1 or more spaces between the hash and the content.