Relative path in shell script

That should work in general, but sometimes if the path will not be expanded for the tilde (~) if it is in quotes.

See Execute a Shell Script action (KM Wiki) and
How To Quote Paths by @ccstone