path processing via bash array was not correct