Merge pull request #3 from zeehio/master

[travis] command_prepend and command split
Merge branch 'master' into coverity_scan
[fix] prevent closing already closed file