Refactoring sensord build files