Fixed program arguments parsing