Inspired by this question.
Getting the source directory of a Bash script from within
Is it possible, but without the need for bash.
I'm running Ubuntu and before i needed that accepted solution from the Bash question, my hash bang was like this
#!/bin/sh
and I liked it that way, is there a way to keep it that way?
EDIT:
It should output the correct directory, even when run thus,
./script.sh