remove dirname compat