Refactored error handling logic
Include cd to buildspace in error reproduction command message