fixed map transform service and improved file handling

Signed-off-by: Kai Kreuzer <kai@openhab.org>