@mekto 
Have you any suggestion how you could change `command` so it would be more portable (i.e. doesn't require 'bash' or work on non-Posix operating systems)?