Fixed target path

Bug found with additional unit test. See: https://github.com/madeyourday/contao-library/pull/3