Fixed incorrect use of basename() function