Remove full paths from .amx files

cd into the script's directory before compiling it.
Add empty_stack test