bug fix, if filename does not have . no seg fault, 404 returned :)