$ perl -MPath::Tiny -E 'say path(q#../script.sh#)->realpath' /home/script.sh