Fixed variable to work with full paths