Improved shellArgs method to ignore spaces between single quotes.