getting dir name of bin file