fixed command execution for linux