Updated addHtaccess function due to cPanel error

[2014-04-16 14:46:26 -0500] warn [cpanel] Unable to run [Cpanel::Fileman::api2_listfiles(3/8)];  (Operation `ne': no method found,
        left argument in overloaded package JSON::XS::Boolean,
        right argument has no overloaded magic at /usr/local/cpanel/Cpanel/Fileman.pm line 507, <$inputfd> line 8.
) at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 121
        Cpanel::Api2::Exec::api2_exec('Fileman', 'listfiles', HASH(0x42d99e0), HASH(0x42acc00)) called at cpanel line 1302