Added option to not call callback when shape selected.
Using normpath instead for samedir to compare directories.