mod_getDirname

Get dirname of a module according to current path

Parameters
string $current_path = null

path to where the function is called

#
Returns
string

$dirname