if (-d $location){ check if $location ends with \ .. or if not add it.. }