refactored linux buildshell