Utils for working with command line in php