Worked!
But to get the exact result that I was aiming for I had to use
shell.resolve(process.info().path)
This returns me the full path of the file with extension
In computercraft there is this command:
shell.getRunningProgram()
This command returns the path and filename of the program that executed it.
I wonder if there's a command in OpenComputers that does the same