Merge pull request #27 from euanh/planexsc

Tidy up: remove dead code and fix some minor pylint errors
build: Move build command out of build_srpm

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Factor out common caching code

Signed-off-by: Euan Harris <euan.harris@citrix.com>