Fix deploymentitem path

Signed-off-by: James Tasker <james_tasker1@hotmail.com>
Cleanup code

Signed-off-by: James Tasker <james_tasker1@hotmail.com>