Rename file variable to mountpoint to prevent conflict.