Updated writeFiles function - bug with #!/bin/bash and OpenVPN up