fix append/prependExtensions

hike expects either a string or a proper array