Using old syntax of "basename" script for back compatibility with Ubuntu 12.04