When running ejbca.sh with a file as argument, EJBCA CLI does not use the current working directory correctly, i.e
/opt/ejbca/bin/ejbca.sh -f bar should be identical to /opt/ejbca/bin/ejbca.sh -f /foo/bar but it is not.
This leads to some unexpected results when doing tab completion and breaks at least one AMI script.
Example of command not working:
echo $PWD in the ejbca.sh script returns /home/bastian/.workspace/ejbca in this case which is wrong.
Basically, the problem is the `cd` inside the ejbca.sh script.