replaced "system"-call trough fileutil-methods