Improve portability of fixpath.sh