fix: error handling code
allowing things like Xcode or xcode as command