Added --xclip option for generate:input command to support output generated code to clipboard (linux only)
Return error code instead of using exit()
Fixed error
getComponentDir() searches component in local dir first